<template>
  <div class="config">
    <el-tabs v-model="currentTab" class="center-tabs">
      <el-tab-pane label="组件属性" name="attr" />
      <el-tab-pane label="数据联动" name="dataLinkage" />
    </el-tabs>
    <div class="forms">
      <Attr v-if="currentTab === 'attr'"></Attr>
      <DataLinkage v-else></DataLinkage>
    </div>
  </div>
</template>

<script>
import Attr from './attr'
import DataLinkage from './dataLinkage'
export default {
  name: '',
  components: {
    Attr,
    DataLinkage
  },
  data() {
    return {
      currentTab: 'attr'
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .center-tabs {
  padding-top: 5px;
  .el-tabs__item {
    width: 50%;
    text-align: center;
  }
  .el-tabs__nav {
    width: 100%;
  }
}
.forms {
  padding: 0 0 10px 10px;
}
</style>